package com.lzx.adx.report.enums;

public enum XhsCovertWifiEventTypeEnums {
    //转换类型【2新登，3，收购，4，次日留存，6，拉活UV,7拉活存单，8当日首购】

    ACTIVATE_APP("ACTIVATE_APP","1","激活"),
    RETENTION("RETENTION","5","次留"),
    REGISTER("REGISTER","2","注册"),


    ;


    private String elmCode;

    private String code;

    private String msg;


    XhsCovertWifiEventTypeEnums(String elmCode, String code, String msg) {
        this.elmCode = elmCode;
        this.code = code;
        this.msg = msg;
    }

    public String getElmCode() {
        return elmCode;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public static String getOutCode(String elmCode){
        for (XhsCovertWifiEventTypeEnums value : XhsCovertWifiEventTypeEnums.values()) {
            if(value.getElmCode().equals(elmCode)){
                return value.getCode();
            }
        }
        return  null;
    }

}
